package designpattern.builder;

/**
 * 具体创建者
 */
public class CreateBuilder extends Builder{
    Computer computer = new Computer();
    @Override
    public void buildCPU() {
        computer.add("CPU");
    }

    @Override
    public void buildMainBoard() {
        computer.add("主板");
    }

    @Override
    public void buildHardDisk() {
        computer.add("硬盘");
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}
